#include <my_head.h>

int count = 0;

void sig_func(int x){
    if(++count == 3){
        exit(EXIT_SUCCESS);
    }
}

int main(int argc, const char *argv[]){
    signal(2, sig_func);
    while(1);
    return 0;
}